package com.ht.miscorservice.demo.server.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.ht.miscorservice.demo.server.dao.SysUserDao;
import com.ht.miscorservice.demo.server.entity.SysUserEntity;
import com.ht.miscorservice.demo.server.remote.IBizDemo2ServiceRemote;
import com.ht.miscorservice.demo.server.remote.IBizDemoServiceRemote;
import com.ht.miscorservice.demo.server.service.SysUserService;
import com.ht.miscorservice.demo.server.util.PageUtils;
import com.ht.miscorservice.demo.server.util.Query;
import org.springframework.stereotype.Service;

import java.util.Map;


/**
 * @author tanyunhua
 */
@Service
public class SysUserServiceImpl extends ServiceImpl<SysUserDao, SysUserEntity> implements SysUserService  {

    @Override
    public PageUtils pageQuery(Map<String, Object> params) {

        IPage<SysUserEntity> page = this.page(
                new Query<SysUserEntity>().getPage(params),
                new QueryWrapper<>()
        );

        return new PageUtils(page);
    }


}
